

def lucha(top):

    index = 0
    sum = 0
    while index <= top:
        sum = sum + index*index
        index = index + 1

    return sum

if __name__ == '__main__':
    top = 10
    ret = lucha(top)
    print('lucha %s = %s' % (top, ret))